'use strict';

function get_letter_interval(number_a, number_b) {
  let collection= [1,'a', 'b', 'c', 'd', 'e'];
  let result=[];
  if(number_a==number_b)
    {
      result.push(collection[number_a]);
    }
  if(number_a<number_b)
    {
      for(let i=number_a;i<=number_b;i++)
        {
          result.push(collection[i])
        }
    }  
    if(number_a>number_b)
    {
      for(let i=number_a;i>=number_b;i--)
        {
          result.push(collection[i])
        }
    }
    return result;

}

module.exports = get_letter_interval;
